var myloader=loaderFactory({
	ids					:	["waterfall_1","waterfall_2","waterfall_3","waterfall_4"],
	pagerParameterName	:	"pageNo"
});
    	
$(function () {
    var url = "data/data.json";
    $(window).bind("scroll", function (event) {
	    //滚动条到网页头部的 高度，兼容ie,ff,chrome
	    var top = document.documentElement.scrollTop + document.body.scrollTop; 
	    //网页的高度
	    var textheight = $(document).height();
	    // 网页高度-top-当前窗口高度 
	    if (textheight - top - $(window).height() <= 400) {
	    	myloader.getData(url);
	    }
    });
    
    myloader.getData(url);
});

